package com.tengniu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 启动程序
 *
 * @author lmq
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class CloudShareIOTAdminApplication extends SpringBootServletInitializer  {

    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(CloudShareIOTAdminApplication.class, args);
        System.out.println("####### 管理后台接口工程启动成功...");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(CloudShareIOTAdminApplication.class);
    }

}
